From: Paul Spooren Date: Thu, 28 Jul 2022 20:43:46 +0000 (+0200) Subject: luci-app-attendedsysupgrade: report used client version X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=d4e919f363240c28a491877171d5712311f4aeda;p=project%2Fluci.git luci-app-attendedsysupgrade: report used client version This allows the backend to track popular app versions and drop support for unsed version in case of API changes. Specifically the app sends a version string in the format "luci/GIT_HASH" to the backend. Signed-off-by: Paul Spooren (cherry picked from commit f368faf6789a43c2e1a26b721f8115473672eb29) --- diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index cac75d7f1d..1553a01157 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -418,7 +418,7 @@ return view.extend({ }, render: function (res) { - this.data.app_version = res[0].packages['luci-app-attendedsysupgrade']; + this.firmware.client = 'luci/' + res[0].packages['luci-app-attendedsysupgrade']; this.firmware.packages = res[0].packages; this.firmware.profile = res[1].board_name;